<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
  <title></title>
  
  <script>
    $(document).ready(function() {
      //聚焦第一个输入框
      $("#company_name").focus();
      //为inputForm注册validate函数
      $("#inputForm").validate();
    });
  </script>
</head>

<body>
  <form id="inputForm" action="${ctx}/admin/company/deposit" method="post" class="form-horizontal">
    <input type="hidden" name="id" value="${company.id}"/>
    <fieldset>
      <legend><small>公司充值</small></legend>
      <div class="control-group">
        <label for="company_name" class="control-label">公司名称:</label>
        <div class="controls">${company.name}</div>
      </div>
      <div class="control-group">
        <label for="company_balance" class="control-label">目前余额:</label>
        <div class="controls">${company.balance}</div>
      </div>
      <div class="control-group">
        <label for="company_type" class="control-label">充值金额:</label>
        <div class="controls">
          <input type="text" id="amount" name="amount" class="input-large"/>
        </div>
      </div>
      <div class="form-actions">
        <input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>&nbsp;  
        <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
      </div>
    </fieldset>
  </form>
</body>
</html>
